#ifndef myevalvid_sink_h
#define myevalvid_sink_h

#include <stdio.h>
#include "agent.h"

class myEvalvid_Sink : public Agent {
public:

    myEvalvid_Sink() : Agent(PT_UDP) {
        pkt_received = 0;
    }
    void recv(Packet*, Handler*);
    int command(int argc, const char*const* argv);
    void print_status();
protected:
    char tbuf[100];
    FILE *tFile;
    unsigned long int pkt_received;
private:

    char getFrameType(int type) {
        switch (type) {
            case 1:
                return 'I';
                break;
            case 2:
                return 'P';
                break;
            case 3:
                return 'B';
                break;
            default:
                assert(0);
                break;
        }
        return 0;
    }
};

#endif
